package kr.bae.androidcomplete01.chapter08;

import kr.bae.androidcomplete01.R;
import kr.bae.androidcomplete01.chapter07.CustomViewEx;
import kr.bae.androidcomplete01.chapter07.DrawBitmapEx;
import kr.bae.androidcomplete01.chapter07.OffScreen;
import kr.bae.androidcomplete01.chapter07.ShapeDrawbaleEx;
import kr.bae.androidcomplete01.chapter07.ToastEx;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch08MainActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch08main);
	}

	public void mOnClick(View v) {
		Intent i = null;
		switch (v.getId()) {
		case R.id.ch08_btn01:
			i = new Intent(Ch08MainActivity.this, HandleEventEx.class);
			break;
			
		case R.id.ch08_btn02:
			i = new Intent(Ch08MainActivity.this, HandleEventListenerEx.class);
			break;
			
		case R.id.ch08_btn03:
			i = new Intent(Ch08MainActivity.this, HandlerOrder.class);
			break;
			
		case R.id.ch08_btn04:
			i = new Intent(Ch08MainActivity.this, HandlerAccess.class);
			break;
			
		case R.id.ch08_btn05:
			i = new Intent(Ch08MainActivity.this, FreeLine.class);
			break;
			
		case R.id.ch08_btn06:
			i = new Intent(Ch08MainActivity.this, MoveCircle.class);
			break;
			
		case R.id.ch08_btn07:
			i = new Intent(Ch08MainActivity.this, LongClick.class);
			break;

		default:
			break;
		}
		startActivity(i);
	}
}
